package com.goodving.guli.utility;

import android.app.Activity;
import android.content.Context;
import android.util.DisplayMetrics;

import com.androidquery.util.AQUtility;

/**
 * Created by Administrator on 2015-11-17.
 */
public class C1483w {
    public static int m12107a(Activity activity) {
        DisplayMetrics displayMetrics = new DisplayMetrics();
        activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
        return displayMetrics.heightPixels;
    }

    public static int m12109b(Activity activity) {
        DisplayMetrics displayMetrics = new DisplayMetrics();
        activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
        return displayMetrics.widthPixels;
    }

    public static int m12108a(Context context, float f) {
        return AQUtility.dip2pixel(context, f);
    }

    public static float m12106a(Context context, int i) {
        return AQUtility.pixel2dip(context, (float) i);
    }
}
